
package tools.programs;

import java.io.File;
import java.io.FileOutputStream;
import provider.DbgData;
import provider.DbgDataProvider;
import provider.DbgDataProviderFactory;

/**
 *
 * @author TSun
 * 
 *   This file was written by T-Sun (doomgate17@naver.com)
 *
 */
public class dad {
    public static void main(String args[]) {
        System.out.println("Starting...");
        try {
            FileOutputStream ff = new FileOutputStream ("insCode.txt");
            DbgDataProvider itemData = DbgDataProviderFactory.getDataProvider(new File("wz/Item.wz"));
            DbgData dd = itemData.getData("Install/0301.img");
            for (DbgData d : dd.getChildren()) {
                ff.write((Integer.parseInt(d.getName())+",").getBytes());
            }
            System.out.println("Success..");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
